<?

$filename = "products/".$_GET['img'];
?>
<html>
<head>
<title><?=$_GET['imgn']?></title>
<SCRIPT LANGUAGE="JavaScript">
<!--
var maxh = window.screen.availHeight;
var maxw = window.screen.availWidth;
function resizeWin()
{

	var h=document.all?document.body.scrollHeight:document.height;
	var w=document.all?document.body.scrollWidth:document.width;
	if (h>maxh) h=maxh-30;
	if (w>maxw) w=maxw;
	window.resizeTo(w,h+30);
	window.moveTo((maxw-w)/2,(maxh-(h+30))/2);
	// alert(h+"="+window.innerHeight);
}


//-->
</SCRIPT>
</head>
<body bgcolor="#339966" onload="resizeWin()">
<center>
<font size=2 color=white>Products preview </font>
<p>
<img src="<?=$filename?>" border=0><br>
<a href="javascript:window.close()"><font size=2 color=white>Close</font></a>
</center>
</body>
</html>
